* fix uci config processing (ban_logterm)
* update the readme
Signed-off-by: Dirk Brenken <[email protected]>
PKG_NAME:=banip
PKG_VERSION:=1.5.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0-or-later
sshd1 : 'error: maximum authentication attempts exceeded'
sshd2 : 'sshd.*Connection closed by.*\[preauth\]'
asterisk : 'SecurityEvent=\"InvalidAccountID\".*RemoteAddress='
-nginx : 'received a suspicious remote IP '\''.*'\'''
+nginx : 'received a suspicious remote IP .*'
openvpn : 'TLS Error: could not determine wrapping from \[AF_INET\]'
AdGuard : 'AdGuardHome.*\[error\].*/control/login: from ip'
```
local append option="${1}" value="${2//\"/\\\"}"
eval "append=\"\${${option}}\""
- eval "${option}=\"${append}${value} \""
+ case "${option}" in
+ "ban_logterm")
+ eval "${option}=\"${append}${value}\\|\""
+ ;;
+ *)
+ eval "${option}=\"${append}${value} \""
+ ;;
+ esac
}
}
config_load banip